package com.sefon.smarteconomy.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
 
/**
 * 
 * Copyright: Copyright (c) 2018 SefonSoft 
 * 
 * @ClassName: User.java 
 * @Description:客户群
 * 
 * @version: v1.0.0
 * @author: SF2170
 * @by AnalysisExcel2File.java
 * @Date 2018/03/26 22:07:28
 * 
 */
@Entity
@Table(name="client_group")
public class ClientGroup {

	/**
	* UUID
	*/
	@Id 
	@Column(name="`id`", length=64, columnDefinition="varchar(64) COMMENT '用户群id'")
	private String id;

	@Column(name="`name`", nullable=false, length=255, columnDefinition="varchar(255) COMMENT '用户群名称'")
	private String name;

	@Column(name="`create_date`", columnDefinition="datetime COMMENT '创建时间'")
	private Date createDate;

	@Column(name="`create_user`", length=255, columnDefinition="varchar(255) COMMENT '创建人id'")
	private String createUser;

	@Column(name="`update_date`", columnDefinition="timestamp COMMENT '修改时间'")
	private Date updateDate;

	@Column(name="`desc`", length=255, columnDefinition="varchar(255) COMMENT '描述'")
	private String desc;

	/**
	* 1和0 1共享 0私有
	*/
	@Column(name="`share`", length=2, columnDefinition="int(2) COMMENT '是否共享'")
	private Integer share;

	/**
	* 0和1(1:true ,0:false)
	*/
	@Column(name="`publish_flag`", length=2, columnDefinition="int(2) COMMENT '是否发布'")
	private Integer publishFlag;

	/**
	* sql语言后where子句
	*/
	@Column(name="`condition`", length=500, columnDefinition="varchar(500) COMMENT '筛选条件'")
	private String condition;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Integer getShare() {
		return share;
	}

	public void setShare(Integer share) {
		this.share = share;
	}

	public Integer getPublishFlag() {
		return publishFlag;
	}

	public void setPublishFlag(Integer publishFlag) {
		this.publishFlag = publishFlag;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

}
